//封装token的相关方法  存、取、删
const TOKENKET = 'token_key' 
const setToken =(token)=>{
    localStorage.setItem(TOKENKET,token)
}

const getToken=()=>{
   // console.log(localStorage.getItem(TOKENKET))
    return localStorage.getItem(TOKENKET)
}

const removeToken=()=>{
    localStorage.removeItem(TOKENKET)
}

export {
    setToken,
    getToken,
    removeToken
}